package com.css.fxfzypg.modules.baseData.repository;

import com.css.fxfzypg.modules.baseData.entity.AreaEntity;
import com.css.fxfzypg.modules.baseData.queryParams.AreaQueryParams;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author y1fan
 * @create 2022-08-10 14:20
 */
public interface AreaRepository {


    AreaEntity updateArea(AreaEntity areaEntity);

    Page<AreaEntity> findArea(AreaQueryParams areaQueryParams);

    void deleteAreaById(String areaId);

    void addArea(AreaEntity areaEntity);

    AreaEntity findByAreaid(String areaId);

    void deleteManyArea(List<String> ids);

    List<AreaEntity> exportExcel();

    void importExcel(List<AreaEntity> areaEntities);

    public List<AreaEntity> getStreet(String province,String city,String county);
}
